﻿
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo_数据流.Model
{
    class ModelMainWindow : NotifyPropertyChange//逻辑
    {
        #region 建立单例

        private static ModelMainWindow uniqueInstance;

        private static readonly object locker = new object();

        public static ModelMainWindow GetInstance()
        {
            if (uniqueInstance == null)
            {
                lock (locker)
                {
                    if (uniqueInstance == null)
                    {
                        uniqueInstance = new ModelMainWindow();
                    }
                }
            }
            return uniqueInstance;
        }

        #endregion

        private string _IsList1 = "Visible";
        public string IsList1
        {
            get { return _IsList1; }
            set { if (_IsList1 != value) { _IsList1 = value; RaisePropertyChanged(""); } }
        }

       
    }
}
